/**
 * Created by xxc on 2018/8/19.
 */
$(function () {
    $("#phone").bind('input propertychange',function () {
        $("#msg").css("display","block");
    }).blur(function () {
        if($("#phone").val()==null){
            $("#msg").css("display","none");
        }else{
            $("#msg").css("display","block");
        }
    })
    $("#but2").click(function () {
        $("#mask").css("display","none");
    })
})
/*
window.onload = function () {
    $("phone").onfocus = function(){
        $("msg").style.display = "block";
        this.style.color = "#000"
        if(this.value=="建议使用常用手机号"){
            this.value = "";
        }else{
            $("msg").style.display = "none";
        }
    }
    $("phone").onblur = function(){
        if(this.value==""){
            this.value = "建议使用常用手机号";
            this.style.color = "#ccc"
        }else if(isNaN(this.value)){
            $("msg").className = "error";
            $("msg").innerHTML = "格式错误,请输入11位手机号";
            $("right").style.display = "none";
        }else if(this.value.length!=11){
            $("msg").className = "error";
            $("msg").innerHTML = "格式错误,请输入11位手机号";
            $("right").style.display = "none";
        }else if(this.value.length==11){
            $("msg").style.display = "none";
            $("right").style.display = "block";
        }
    }

    $("but2").onclick = function(){
        $("mask").style.display = "none";
    }
    $("m_close").onclick = function(){
        $("mask").style.display = "none";
    }
}
    */